package com.petter.gradlespringboot.proxy.rpc;

import com.petter.gradlespringboot.entity.Person;
import com.petter.gradlespringboot.proxy.rpc.client.RpcClientProxy;
import com.petter.gradlespringboot.service.UserService;
import com.petter.gradlespringboot.service.impl.UserServiceImpl;

/**
 * @author : GD
 * @date :2021/7/6 : 23:30
 */
public class MainTest {

    public static void main(String[] args) {

        RpcClientProxy proxy = new RpcClientProxy("127.0.0.1",9998);
        UserService service = proxy.getProxy(UserService.class);

        System.out.println(service.getUserName("test"));
    }
}
